package client.handler;

import client.Client;
import unit.response.IncomingMessage;
import unit.response.Response;

/**
 * Created by IntelliJ IDEA.
 * User: victorn
 * Date: 8/24/11
 * Time: 11:11 PM
 * To change this template use File | Settings | File Templates.
 */
public class IncomingMessageHandler extends AbstractResponseHandler {
    IncomingMessageHandler(Client client) {
        super(client);
    }

    @Override
    public void handleRequest(Response response) {

        client.clientInterface.showMessage(((IncomingMessage) response).getSenderID(), ((IncomingMessage) response).getMessage());
    }
}
